package springboot.com.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import springboot.com.dao.JdbcTemplateDemoDao;
import springboot.com.entity.Demo;


@Service
public class DemoJdbcServiceImpl {

	@Resource
    private JdbcTemplateDemoDao jdbcTemplateDemoDao;
	
	public Demo getById(long id){
    //demoRepository.findOne(id);//在demoRepository可以直接使用findOne进行获取.
	return jdbcTemplateDemoDao.getById(id);
	}
	
}
